﻿<?php
//	Checks if this file is called within the framework; otherwise terminates.
if (!defined("IS_FRAMEWORK") || !IS_FRAMEWORK)	header("Location: http://".$_SERVER["HTTP_HOST"]."/error/404");

//	Imports relevant files.
require_once CORE_PATH."KYR.Core.BaseHandler.php";

class WidgetHandler extends BaseHandler
{
	public function __construct($request, $componentID)
	{
		parent::__construct($request, $componentID);
		$this->handlerName	= __CLASS__;

		try
		{
			$existHandler = $this->CheckHandler_();
			if (!$existHandler)
				throw new Exception("Handler not found");
		}
		catch (Exception $ex) { throw $ex; }
	}

	public function ProcessHandler(&$variables)
	{
		//	Processes the parent method.
		try { $this->ProcessHandler_($variables); } catch (Exception $ex) { throw $ex; }
	}
}
?>
